package com.bw.service;

import com.bw.entity.TbUserTem;
import com.bw.entity.vo.UserTemVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("port-server")
public interface UserTemService {
    //用户组列表
    @GetMapping("usertemlist")
    List<UserTemVo> usertemlist(@RequestParam("mohu") String mohu);
    //批量删除
    @PostMapping("temdel")
    String[] temdel(@RequestParam("id") String id);
    //添加
    @PostMapping("temadd")
    TbUserTem temadd(@RequestBody TbUserTem userTem);
    //修改
    @PostMapping("updUserList")
    TbUserTem updUserList(@RequestBody TbUserTem userTem);
    //回显
    @GetMapping("findByUserId")
    TbUserTem findByUserId(@RequestParam("id") int id);
}
